// 技能发展税 api接口
import request from '@/utils/request';

const skillsDevelopmentTaxService = {
    // SDL档案列表
    async querySdlList(params = {}) {
        return request('/api/finance/salary/v1/setting/sdl/list', {
            method: 'GET',
            params
        });
    },
    // 档案详情-更新
    async querySdlDetail(params = {}) {
        return request('/api/finance/salary/v1/setting/sdl/detail', {
            method: 'PUT',
            data: params
        });
    },
    // 档案详情-新增(批量)
    async querySettingSdl(params = []) {
        return request('/api/finance/salary/v1/setting/sdl', {
            method: 'POST',
            data: params
        });
    },

    // 档案详情-重置
    async queryResetSdl({ sdlId }) {
        return request(`/api/finance/salary/v1/setting/sdl/reset/${sdlId}`, {
            method: 'GET'
        });
    },

    // 档案详情-删除
    async queryDeleSdl({ sdlId, id }) {
        return request(`/api/finance/salary/v1/setting/sdl/detail/${sdlId}/${id}`, {
            method: 'DELETE'
        });
    },

    // 审批详情-生效日期等信息
    async querySdlApproveDetail({ sdlId }) {
        return request(`/api/finance/salary/v1/setting/sdl/approve/detail/${sdlId}`, {
            method: 'GET'
        });
    },

    // sdl档案-校验数据完整性
    async querySdlCheck({ sdlId }) {
        return request(`/api/finance/salary/v1/setting/sdl/check/${sdlId}`, {
            method: 'GET'
        });
    }
};

export default skillsDevelopmentTaxService;
